{
	match($2, /node-(.*)/);
	nodeA = substr($2, RSTART+5, RLENGTH);

	if (substr($3, 16, 1) == "0") { 
		nodeB = substr($3, 17, 1);
	} else {
		nodeB = substr($3, 16, 2);
	}
	
	print "INSERT INTO events (logTime, nodeA, nodeB, action, expNum, source) VALUES ("$1", "nodeA", "nodeB", '"$4"', "expNum", 'haggle');";}